package com.tian.mapper;

import com.tian.dto.coupon.CouponUsedStatisticsRespDto;
import com.tian.entity.CouponUsedStatistics;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface CouponUsedStatisticsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CouponUsedStatistics record);
    int insertBatch(List<CouponUsedStatistics> list);

    CouponUsedStatistics selectByPrimaryKey(Long id);

    List<CouponUsedStatistics> selectAll();

    int countByOrderId(Long orderId);

    CouponUsedStatisticsRespDto countByCouponId(Integer couponId);

    int updateByPrimaryKey(CouponUsedStatistics record);
}